package org.dromara.common.excel.annotation

import org.dromara.common.core.utils.StringUtils
import java.lang.annotation.Inherited

/**
 * 字典格式化
 *
 * @author Lion Li
 * @updater LikeYouDo
 * @date 2025/1/14 15:16
 */
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Inherited
annotation class ExcelDictFormat(
    /**
     * 如果是字典类型，请设置字典的type值 (如: sys_user_sex)
     */
    val dictType: String = "",

    /**
     * 读取内容转表达式 (如: 0=男,1=女,2=未知)
     */
    val readConverterExp: String = "",

    /**
     * 分隔符，读取字符串组内容
     */
    val separator: String = StringUtils.SEPARATOR,
)
